//
//  Date_listTableViewCell.m
//  fxxiaoke
//
//  Created by 鞠超 on 2016/11/2.
//  Copyright © 2016年 jc. All rights reserved.
//

#import "Date_listTableViewCell.h"

@implementation Date_listTableViewCell

- (instancetype )initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if(self)
    {
        [self p_setupView];
    }
    
    return self;
}

- (void )p_setupView
{
    self.name = [[UILabel alloc] init];
    self.name.text = @"事情发生时";
    self.name.textColor = [UIColor grayColor];
    self.name.font = [UIFont systemFontOfSize:16.0f];
    [self.contentView addSubview:self.name];
    
    self.view_line = [[UIView alloc] init];
    self.view_line.backgroundColor = [UIColor groupTableViewBackgroundColor];
    [self.contentView addSubview:self.view_line];
    
    self.correct = [[UIImageView alloc] init];
    self.correct.image = [UIImage imageNamed:@"checknumber.png"];
    self.correct.layer.masksToBounds = YES;
    [self.contentView addSubview:self.correct];
    self.correct.hidden = YES;
}

- (void )layoutSubviews
{
    [super layoutSubviews];
    
    self.name.frame = CGRectMake(10, 15, SCREEN_WIDTH / 3 * 2, 25);
    
    self.view_line.frame = CGRectMake(10, 54, SCREEN_WIDTH - 10, 1);
    
    self.correct.frame = CGRectMake(SCREEN_WIDTH - 10 - 20, 17.5, 20, 20);
}













@end
